package com.briup.sms.service.impl;

import com.briup.sms.dao.CategoryMapper;
import com.briup.sms.entity.Category;
import com.briup.sms.entity.ext.CategoryExtend;
import com.briup.sms.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.MissingFormatArgumentException;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper mapper;
    @Override
    public List<CategoryExtend> findCategoryInfo() {
        List<CategoryExtend> list = mapper.findCategoryInfo();
        return list;
    }

    @Override
    public List<Category> findCategorysOneLevel() {
        List<Category> list = mapper.findCategorysOneLevel();
        return list;
    }
}
